-- CALC_PETER_EVENT_BONUS

-- Peter使用病历触发事件奖励
-- @param user      玩家对象
return function(eventId, para)
    -- 攻击、魔力+10，随机1~2件不重复的武器
    local bonus = { {2, "attack", 10}, {2, "magic", 10} };
    local count  = DungeonM.getRandSeed("CALC_PETER_EVENT_BONUS") % 2;
    local rand;

    local weapens = { 7409, 7410, 7411, 7412 };
    for index = 0, count do
        rand = DungeonM.getRandSeed("CALC_PETER_EVENT_BONUS") % #weapens + 1;
        table.insert(bonus, {1, weapens[rand], 1});
        table.remove(weapens, rand);
    end

    return bonus;
end